package cn.crex1.xiaomi.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.crex1.xiaomi.service.OrderService;
import cn.crex1.xiaomi.service.impl.OrderServiceImpl;
@WebServlet("/Order/*")
public class OrderController extends HttpServlet{
	 private OrderService orderService = new OrderServiceImpl();
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String d[] = req.getRequestURI().split("/");
		System.out.println(d[3]);
		if (d[3].equals("dingdanzhongxin")) {
			dingdanzhongxin(req,resp);
		}
	}
//查询购买订单
	private void dingdanzhongxin(HttpServletRequest req, HttpServletResponse resp) {
		
	}



}
